package cn.iocoder.yudao.module.resource.dal.mysql.creator;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.resource.dal.dataobject.creator.ResourceCreatorDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 创作者 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface ResourceCreatorMapper extends BaseMapperX<ResourceCreatorDO> {

    default ResourceCreatorDO selectByUserId(Long userId) {
        return selectOne(ResourceCreatorDO::getUserId, userId);
    }

}
